import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getCategoryApi } from '@/apis/layout'
export const useCategoryStore = defineStore('category', () => {
    const categoryList = ref([])
   const getcategory=async()=>{
    const res=await getCategoryApi()
    categoryList.value=res.result
    console.log(res)
   }
  
    return { categoryList,getcategory}
  })
  